Optimal. Leaf size=93 \[ \frac {a^3 p \sqrt {x}}{2 b^3}-\frac {a^2 p x}{4 b^2}+\frac {a p x^{3/2}}{6 b}-\frac {p x^2}{8}-\frac {a^4 p \log \left (a+b \sqrt {x}\right )}{2 b^4}+\frac {1}{2} x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 93, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2504, 2442, 45}
\begin {gather*} -\frac {a^4 p \log \left (a+b \sqrt {x}\right )}{2 b^4}+\frac {a^3 p \sqrt {x}}{2 b^3}-\frac {a^2 p x}{4 b^2}+\frac {1}{2} x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right )+\frac {a p x^{3/2}}{6 b}-\frac {p x^2}{8} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2442
Rule 2504
Rubi steps
\begin {align*} \int x \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx &=2 \text {Subst}\left (\int x^3 \log \left (c (a+b x)^p\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {1}{2} x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{2} (b p) \text {Subst}\left (\int \frac {x^4}{a+b x} \, dx,x,\sqrt {x}\right )\\ &=\frac {1}{2} x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{2} (b p) \text {Subst}\left (\int \left (-\frac {a^3}{b^4}+\frac {a^2 x}{b^3}-\frac {a x^2}{b^2}+\frac {x^3}{b}+\frac {a^4}{b^4 (a+b x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {a^3 p \sqrt {x}}{2 b^3}-\frac {a^2 p x}{4 b^2}+\frac {a p x^{3/2}}{6 b}-\frac {p x^2}{8}-\frac {a^4 p \log \left (a+b \sqrt {x}\right )}{2 b^4}+\frac {1}{2} x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 88, normalized size = 0.95 \begin {gather*} \frac {b p \sqrt {x} \left (12 a^3-6 a^2 b \sqrt {x}+4 a b^2 x-3 b^3 x^{3/2}\right )-12 a^4 p \log \left (a+b \sqrt {x}\right )+12 b^4 x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right )}{24 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int x \ln \left (c \left (a +b \sqrt {x}\right )^{p}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 76, normalized size = 0.82 \begin {gather*} -\frac {1}{24} \, b p {\left (\frac {12 \, a^{4} \log \left (b \sqrt {x} + a\right )}{b^{5}} + \frac {3 \, b^{3} x^{2} - 4 \, a b^{2} x^{\frac {3}{2}} + 6 \, a^{2} b x - 12 \, a^{3} \sqrt {x}}{b^{4}}\right )} + \frac {1}{2} \, x^{2} \log \left ({\left (b \sqrt {x} + a\right )}^{p} c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 80, normalized size = 0.86 \begin {gather*} -\frac {3 \, b^{4} p x^{2} - 12 \, b^{4} x^{2} \log \left (c\right ) + 6 \, a^{2} b^{2} p x - 12 \, {\left (b^{4} p x^{2} - a^{4} p\right )} \log \left (b \sqrt {x} + a\right ) - 4 \, {\left (a b^{3} p x + 3 \, a^{3} b p\right )} \sqrt {x}}{24 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.46, size = 92, normalized size = 0.99 \begin {gather*} - \frac {b p \left (\frac {2 a^{4} \left (\begin {cases} \frac {\sqrt {x}}{a} & \text {for}\: b = 0 \\\frac {\log {\left (a + b \sqrt {x} \right )}}{b} & \text {otherwise} \end {cases}\right )}{b^{4}} - \frac {2 a^{3} \sqrt {x}}{b^{4}} + \frac {a^{2} x}{b^{3}} - \frac {2 a x^{\frac {3}{2}}}{3 b^{2}} + \frac {x^{2}}{2 b}\right )}{4} + \frac {x^{2} \log {\left (c \left (a + b \sqrt {x}\right )^{p} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 171 vs.
\(2 (73) = 146\).
time = 3.39, size = 171, normalized size = 1.84 \begin {gather*} \frac {12 \, b x^{2} \log \left (c\right ) + {\left (\frac {12 \, {\left (b \sqrt {x} + a\right )}^{4} \log \left (b \sqrt {x} + a\right )}{b^{3}} - \frac {48 \, {\left (b \sqrt {x} + a\right )}^{3} a \log \left (b \sqrt {x} + a\right )}{b^{3}} + \frac {72 \, {\left (b \sqrt {x} + a\right )}^{2} a^{2} \log \left (b \sqrt {x} + a\right )}{b^{3}} - \frac {48 \, {\left (b \sqrt {x} + a\right )} a^{3} \log \left (b \sqrt {x} + a\right )}{b^{3}} - \frac {3 \, {\left (b \sqrt {x} + a\right )}^{4}}{b^{3}} + \frac {16 \, {\left (b \sqrt {x} + a\right )}^{3} a}{b^{3}} - \frac {36 \, {\left (b \sqrt {x} + a\right )}^{2} a^{2}}{b^{3}} + \frac {48 \, {\left (b \sqrt {x} + a\right )} a^{3}}{b^{3}}\right )} p}{24 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.27, size = 73, normalized size = 0.78 \begin {gather*} \frac {x^2\,\ln \left (c\,{\left (a+b\,\sqrt {x}\right )}^p\right )}{2}-\frac {p\,x^2}{8}-\frac {a^4\,p\,\ln \left (a+b\,\sqrt {x}\right )}{2\,b^4}+\frac {a^3\,p\,\sqrt {x}}{2\,b^3}-\frac {a^2\,p\,x}{4\,b^2}+\frac {a\,p\,x^{3/2}}{6\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________